﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class BinhGasDTO
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }

        private int loaiGas;

        public int LoaiGas
        {
            get { return loaiGas; }
            set { loaiGas = value; }
        }
        private int soLuong;

        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
    }
    public class VoBinhGasDTO
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private int loaiGas;

        public int LoaiGas
        {
            get { return loaiGas; }
            set { loaiGas = value; }
        }
        private int soLuong;

        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
    }
    public class LoaiGasDTO
    {
        public static String GetTenGas(String str)
        {
            int i1 = str.LastIndexOf('(');
            if (i1 >= 0)
            {
                int i2 = str.LastIndexOf(')');
                return str.Substring(0, i1 - 1);
            }
            return str;
        }
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private String tenLoai;

        public String TenLoai
        {
            get { return tenLoai; }
            set { tenLoai = value; }
        }
        private float gia;

        public float Gia
        {
            get { return gia; }
            set { gia = value; }
        }
        private float canNang;

        public float CanNang
        {
            get { return canNang; }
            set { canNang = value; }
        }
        
        public LoaiGasDTO()
        {
            id = 0;
            tenLoai = "";
            gia = 0;
            canNang = 0;
        }
        public LoaiGasDTO(int _id, String _tenLoai, float _gia, float _canNang)
        {
            id = _id;
            tenLoai = _tenLoai;
            gia = _gia;
            canNang = _canNang;
        }
    }
    public class DaiLyDTO
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private String tenDaiLy;

        public String TenDaiLy
        {
            get { return tenDaiLy; }
            set { tenDaiLy = value; }
        }
        private String dienThoai;

        public String DienThoai
        {
            get { return dienThoai; }
            set { dienThoai = value; }
        }
        private String diaChi;

        public String DiaChi
        {
            get { return diaChi; }
            set { diaChi = value; }
        }
        private String quan;

        public String Quan
        {
            get { return quan; }
            set { quan = value; }
        }

        public DaiLyDTO()
        {
            id = 0;
            tenDaiLy = ""; 
            diaChi = "";
            dienThoai = "";
            quan = "";
        }

        public DaiLyDTO(int _id, String _tenDaily, String _diaChi, String _sdt, String _quan)
        {
            id = _id;
            tenDaiLy = _tenDaily;
            diaChi = _diaChi;
            dienThoai = _sdt;
            quan = _quan;
        }
    }
    public class PhanPhoiDTO
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private int maGiaoHang;

        public int MaGiaoHang
        {
            get { return maGiaoHang; }
            set { maGiaoHang = value; }
        }
        private int daiLy;

        public int DaiLy
        {
            get { return daiLy; }
            set { daiLy = value; }
        }
        private int loaiGas;

        public int LoaiGas
        {
            get { return loaiGas; }
            set { loaiGas = value; }
        }
        private int soLuong;

        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
        private float giaBan;

        public float GiaBan
        {
            get { return giaBan; }
            set { giaBan = value; }
        }
        private float giaGoc;

        public float GiaGoc
        {
            get { return giaGoc; }
            set { giaGoc = value; }
        }
        private int chietKhau;

        public int ChietKhau
        {
            get { return chietKhau; }
            set { chietKhau = value; }
        }
        
    }

    public class ThuHoiDTO
    {
        private int id;

        public int Id
        {
            get { return id; }
            set { id = value; }
        }
        private int maGiaoHang;

        public int MaGiaoHang
        {
            get { return maGiaoHang; }
            set { maGiaoHang = value; }
        }
        private int daiLy;

        public int DaiLy
        {
            get { return daiLy; }
            set { daiLy = value; }
        }
        private int voPhanPhoi;

        public int VoPhanPhoi
        {
            get { return voPhanPhoi; }
            set { voPhanPhoi = value; }
        }
        private int voThuVe;

        public int VoThuVe
        {
            get { return voThuVe; }
            set { voThuVe = value; }
        }
        private int soLuong;

        public int SoLuong
        {
            get { return soLuong; }
            set { soLuong = value; }
        }
        
        private float giaDoiVo;

        public float PhiDoiVo
        {
            get { return giaDoiVo; }
            set { giaDoiVo = value; }
        }

       
    }
    public class GiaoHangDTO
    {
        int _id;

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        DateTime _Ngay;

        public DateTime Ngay
        {
            get { return _Ngay; }
            set { _Ngay = value; }
        }
        String _TaiXe;

        public String TaiXe
        {
            get { return _TaiXe; }
            set { _TaiXe = value; }
        }
        bool hoanThanh;

        public bool HoanThanh
        {
            get { return hoanThanh; }
            set { hoanThanh = value; }
        }
    }
    public class ChiTietXeDi
    {
        int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        int _MaGiaoHang;

        public int MaGiaoHang
        {
            get { return _MaGiaoHang; }
            set { _MaGiaoHang = value; }
        }
        int _MaLoaiGas;

        public int MaLoaiGas
        {
            get { return _MaLoaiGas; }
            set { _MaLoaiGas = value; }
        }
        int _SoLuong;

        public int SoLuong
        {
            get { return _SoLuong; }
            set { _SoLuong = value; }
        }
        int soLuongGiao;

        public int SoLuongGiao
        {
            get { return soLuongGiao; }
            set { soLuongGiao = value; }
        }
    }
    public class ChiTietXeVe
    {
        int _ID;

        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        int _MaGiaoHang;

        public int MaGiaoHang
        {
            get { return _MaGiaoHang; }
            set { _MaGiaoHang = value; }
        }
        int _MaLoaiGas;

        public int MaLoaiGas
        {
            get { return _MaLoaiGas; }
            set { _MaLoaiGas = value; }
        }
        int _SoLuong;

        public int SoLuong
        {
            get { return _SoLuong; }
            set { _SoLuong = value; }
        }
    }
}
